<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class CreateEkbBranchBank extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('ekb_branch_bank', function (Blueprint $table) {
            $table->id();

            $table->string('branchId', 32)->default("")->comment('网点id');
            $table->string('branchName', 64)->default("")->comment('网点名称');
            $table->string('bankLinkNo', 64)->default("")->comment('联行号');
            $table->unsignedInteger('cityId')->default(0)->comment('城市id');
            $table->string('bankId',32)->default("")->comment('银行id');
            $table->string('updateTime', 32)->default("")->comment('更新时间');

            $table->unsignedInteger('createdAt')->default(0)->comment('创建时间');
            $table->unsignedInteger('createdByUid')->default(0)->comment('创建人');
            $table->unsignedInteger('updatedAt')->default(0)->comment('修改时间');
            $table->unsignedInteger('updatedByUid')->default(0)->comment('修改人');
            $table->tinyInteger('isDeleted')->default(0)->comment('是否删除 0 否 1是');

            $table->collation = 'utf8mb4_general_ci';
            $table->comment = '易快报 - 支行信息';
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('ekb_branch_bank');
    }
}
